package com.ls.fw.mvc.springmvc.support.view.template.beetl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.beetl.core.GroupTemplate;
import org.beetl.core.Template;
import org.beetl.ext.web.WebRenderExt;

public class GlobalExt implements WebRenderExt {

	static long version = System.currentTimeMillis();

	@Override
	public void modify(Template template, GroupTemplate arg1,
			HttpServletRequest arg2, HttpServletResponse arg3) {
		// js,css 的版本编号
		template.binding("sysVersion", version);
		template.binding("sessionId", arg2.getSession().getId());
	}

}